// let rootUrl = "8.218.246.75:"
// let rootUrl = "https://haozeshukong.com"
// let rootUrl = "192.168.1.146:"
let rootUrl = "http://49.4.2.247:"
// let rootUrl = "127.0.0.1:"

let port = "9123"
// let ENV = "dev"
let ENV = "prod"

let ROOT_URL = ""
// 上传图片
let IMG_URL = ""
// 读取图片
let READ_IMG_URL = ""
// 上传视频
let VIDEO_URL = ""
// 读取视频
let READ_VIDEO_URL = ""
// 内嵌H5访问地址
let WEB_VIEW_URL = ""

if (ENV === "dev"){
	ROOT_URL = "http://" + rootUrl + port
	// 上传图片
	IMG_URL = ROOT_URL + "/upload/image"
	// 读取图片
	READ_IMG_URL = ROOT_URL + "/images/"
	// 上传视频
	VIDEO_URL = ROOT_URL + "/upload/video"
	// 读取视频
	READ_VIDEO_URL = ROOT_URL + "/videos/"
	// 内嵌H5访问地址
	WEB_VIEW_URL = "http://127.0.0.1:9010/#"
}else {
	ROOT_URL = rootUrl+"/api"
	// 上传图片
	IMG_URL = ROOT_URL + "/upload/image"
	// 读取图片
	READ_IMG_URL = rootUrl + "/images/"
	// 上传视频
	VIDEO_URL = ROOT_URL + "/upload/video"
	// 读取视频
	READ_VIDEO_URL = rootUrl + "/videos/"
	// 内嵌H5访问地址
	// WEB_VIEW_URL = "https://webview.haozeshukong.com/#"
	WEB_VIEW_URL = "https://haozeshukong.com/#"
	// WEB_VIEW_URL = "http://127.0.0.1:9011/#"
	
}

export default {
	ROOT_URL,
	IMG_URL,
	READ_IMG_URL,
	VIDEO_URL,
	READ_VIDEO_URL,
	WEB_VIEW_URL,
}